allow node-gyp to use open source toolchains on windows#3166
allow node-gyp to use open source toolchains on windows#3166Kreijstal wants to merge 3 commits intonodejs:mainfrom
Conversation
It is a bit too biased towards propietary toolchains, this will diversify the supported toolchains of node-gyp
|
ok ruff lint is failing but all other tests pass |
|
This might significantly increase our support issues. These changes should probably land first on https://github.com/nodejs/gyp-next Please install https://docs.astral.sh/ruff locally because those errors cannot be ignored. |
So you mean it increases the platform support? |
|
I mean that it will open more https://github.com/nodejs/node-gyp/issues for a volunteer group of maintainers to triage. |
because more people will use node-gyp since it will fix something that was broken? That might be true. Is that the reason why it was not fixed? I will try submitting a patch for gyp-next but it wont be anytime soon, since it is basically a rewrite. |
|
also with this, you can work with a fork of https://github.com/Kreijstal/node-ffi-napi/tree/master ffi-napi.. since of course it is msvc biased.. |
currently it is the only option on msys2, since broooklyn will never update napi-sys. And koffi.rs does not work in msys2 either |
|
will this ever be merged? It would be nice to not have to depend on bloated and proprietary msvc for building my dependencies |
just copy the files manually it seems to work for me, using msys2 |
|
@meghdip-fenrir I forgot to mention I also use this patch https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-nodejs/0103-node-gyp-support-mingw-toolchain.patch |
|
Works great, thank you! |
|
anything else to be fixed? |
|
I mean I can keep trying to keep up but not sure if this is planned to get merged |
|
Sorry, I've found your fork is for MSYS2 node-gyp. will you do anything for allowing using MSYS2 GCC for Windows node-gyp? |
|
isn't the fix the same? I haven't had time to look into it, since upstream msys2 did patch some issues a lot of my code is not needed, however some parts are still needed... you would have to... try it and see.. |
Checklist
npm install && npm run lint && npm testpassesDescription of change
It is a bit too biased towards propietary toolchains, this will diversify the supported toolchains of node-gyp
fixes #3120
fixes #3079
fixes #1240
fixes #194